function get_init_respond(a) {
    var b = Date.parse(new Date);
    b /= 1e3, $.ajax({
        "type": "GET",
        "url": "/respond.php?comment_type=" + a,
        "dataType": "json",
        "data": "nowtime=" + b,
        "success": function(c) {
            c.is_login == 0 ? $("#comment_user_send_message").remove() : ($("#comment_user_info").html(c.user_info), $("#user_comment_head").html(c.user_header_info), $("#divccomment").html(c.connect_checkbox), $("#login_user_id").val(c.is_login), $("#comment_user_login").remove()), $("#respond").css("display", "");
        }
    });
}

function sinaconnect(b) {
    if ($("#connect_checkbox").attr("checked") == "checked") var a = "yes"; else var a = "no";
    $.ajax({
        "type": "GET",
        "url": "/respond.php?act=comment_connect&comment_connect=" + a,
        "dataType": "json",
        "success": function(c) {}
    });
}

document.onkeydown = function(b) {
    var a = null;
    window.event ? a = window.event : a = b, a != null && a.ctrlKey && a.keyCode == 13 && document.getElementById("submit").click();
}, $(function() {
    var a = $("#comment").attr("default"), b = $("#comment").val();
    b == "" && ($("#comment").val(a), $("#comment").addClass("brack"));
}), $("#comment").focus(function() {
    $("#comment").removeClass("brack");
    var a = $("#comment").attr("default"), b = $("#comment").val();
    b == a && $("#comment").val("");
}), $("#comment").blur(function() {
    var b = $("#comment").attr("default"), c = $("#comment").val();
    if (c == "") $("#comment").addClass("brack"), $("#comment").val(b); else {
        var a = c.replace(b, "");
        $("#comment").val(a), $("#comment").removeClass("brack");
    }
}), $("#smiley").find("a").click(function() {
    var b = $("#comment").attr("default"), c = $("#comment").val(), a = c.replace(b, "");
    $("#comment").val(a);
}), $(".comment-quote-link").click(function() {
    var b = $("#comment").attr("default"), c = $("#comment").val();
    if (c) {
        var a = c.replace(b, "");
        $("#comment").val(a);
    }
}), $("#submit").click(function() {
    var b = $("#comment").attr("default"), c = $("#comment").val();
    if (b) {
        var a = c.replace(b, "");
        $("#comment").val(a);
    }
});